package cn.gzf.sboot05.mapper;


import cn.gzf.sboot05.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Insert("insert into jt_user values(null,#{username},#{password},#{nick},#{age})")
    void insert(User user);
    @Select("select password from jt_user where username=#{username}")
    User selectByUsername(String username);
}
